<template>
    <div class="conditionCard">
        <Row class="top">
            <Col span=6 class="conditionClass">{{info.TYPE_CONTENT}}</Col>
            <Col span=16 offset=1 class="title">{{info.EVENT_TITLE}}</Col>
        </Row>
        <Row class="time">
            <Col span=24>{{info.CREATETIME}}</Col>
        </Row>
        <div class="content">
           {{info.EVENT_CONTENT}}
        </div>
        <div class="progress">
            <Progress :percent="info.COUNT" v-if="info.EVENT_STATUS === 3">
                <Icon type="checkmark-circled"></Icon>
                <span>已完结</span>
            </Progress>
            <Progress :percent="info.COUNT" v-if="info.EVENT_STATUS === 1">
                <span style="color: rgb(0, 147, 221)">处理中{{info.COUNT}}%</span>
            </Progress>
            <Progress :percent="0" v-if="info.EVENT_STATUS === 0">
                <span style="color: red">待分发</span>
            </Progress>
            <Progress :percent="info.COUNT" class="pingjia" v-if="info.EVENT_STATUS === 2">
                <span style="color: #ff9900">待评价</span>
            </Progress>
        </div>
    </div>
</template>

<script>
export default {
    name: 'conditionCard',
    props: ['info'],
    data() {
        return {
        }
    }
}
</script>

<style lang="less">
    .conditionCard{
        width: 100%;
        padding-left: 20px;
        background-color: #fff;
        border-bottom: 1px solid #eaeaea;
        .top{
            padding: 10px 0;
            .conditionClass{
                display: inline-block;
                height: 30px;
                padding: 0 10px;
                background-color: #7ecef4;
                color: #fff;
                line-height: 30px;
                font-size: 14px;
                letter-spacing: 1px;
                text-align: center;
            }
            .title{
                display: inline-block;
                height: 30px;
                font-size: 15px;
                line-height: 30px;
                font-weight: bold;
                overflow: hidden;
                text-overflow:ellipsis;
                white-space: nowrap;
            }
        }
        .time{
            color: #999999;
            font-size: 13px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eaeaea;
        }
        .content{
            padding: 20px  10px 20px 0;
            text-indent: 2em;
            border-bottom: 1px solid #eaeaea;
            font-size: 14px;
            word-wrap: break-word;
        }
        .progress{
            padding: 20px 0;
            .ivu-progress-outer {
                width: 95% !important;
            }
            .pingjia{
                .ivu-progress-bg{
                    background-color: #ff9900;
                }
            }
        }
    }
</style>
